@mixin setbutton($backgroundcolor:#333){

  background-color:$backgroundcolor;
  &:hover {
    background-color:lighten($backgroundcolor,10.5%);
  }
  &:active {
    background-color:darken($backgroundcolor,12.5%);
  }
}
.g-dialog-container {
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  .overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:9999;
  }
  .dialog-window{
    min-width: 16rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.8);
    transition: all 0.9s cubic-bezier(0.43, -0.14, 0.34, 1.6);
    .dialog-header{
      width: 45px;
      height: 45px;
      margin: 0 auto;
      border: 2px solid #fff;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      &.ok:after{
        content: '';
        display: block;
        width: 30px;
        height: 10px;
        border: 2px solid #fff;
        border-width: 0 0 2px 2px ;
        transform: rotate(-50deg);
      }
      &.warning{
        transform: rotate(90deg);
        &:before{
          content: '';
          display: block;
          width: 20px;
          height: 5px ;
          background: #fff;
          margin-right: 5px;
        }
        &:after{
          content: '';
          display: block;
          width: 5px;
          height: 5px ;
          border-radius: 50%;
          background: #fff;
        }
      }
      &.waiting{
        &:before{
          content: '';
          display: block;
          width: 5px;
          height: 5px ;
          background: yellow;
          border-radius: 50%;
          animation: waiting1 0.8s infinite;
        }
        &:after{
          content: '';
          display: block;
          width: 5px;
          height: 5px ;
          background: red;
          border-radius: 50%;
          animation: waiting2 0.8s infinite;
        }
      }
    }
    .dialog-content{
      padding: 1rem 1rem 0;
      font-size: 1rem;
      text-align: center;
    }
    .dialog-footer{
      padding: 1rem 1rem 0;
      display: flex;
      justify-content: center;
      align-items: center;
      button{
        background: rgba(255, 255, 255, 0.8);
        border: none;
        padding: 0.5rem 1.5rem;
        margin: 0.3rem;
        outline: none;
        font-size: 1rem;
        color: #eee;
        &.green{
          @include setbutton(#0f8f0f);
        }
        &.red{
          @include setbutton(#f6214b);
        }
        &.blue{
          @include setbutton(#01869a);
        }
      }
    }
  }
}
@keyframes waiting1 {
  0% {
    transform: translate(-5px 0);
  }
  50% {
    transform: translate(10px, 0);
  }
  100% {
    transform: translate(-5px, 0);
  }
}
@keyframes waiting2 {
  0% {
    transform: translate(5px, 0);
  }
  50% {
    transform: translate(-10px, 0);
  }
  100% {
    transform: translate(5px, 0);
  }
}

